﻿using System;

namespace diantou.dataModel
{
    /// <summary>
    /// 用户关注
    /// </summary>
    [fastCSharp.emit.jsonSerialize(IsAllMember = true)]
    [fastCSharp.emit.jsonParse(IsAllMember = true)]
    [fastCSharp.emit.dataSerialize(IsReferenceMember = false, IsMemberMap = false)]
    [fastCSharp.code.cSharp.sqlModel]
    public partial class focus
    {
        /// <summary>
        /// 用户标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 1)]
        public int UserId;
        /// <summary>
        /// 关注标识
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 2)]
        [fastCSharp.code.cSharp.webView.outputAjax]
        public int FocusId;
        /// <summary>
        /// 关注类型
        /// </summary>
        public enum type
        {
            None,
            /// <summary>
            /// 不感兴趣[log]
            /// </summary>
            NoFocus = 1,
            /// <summary>
            /// 关注[any]
            /// </summary>
            Focus = 2,
            /// <summary>
            /// 推荐
            /// </summary>
            Comment = 3,

            /// <summary>
            /// 偶像[user]
            /// </summary>
            Idol = 4,
            /// <summary>
            /// 好友[user]
            /// </summary>
            Friend =5,
            /// <summary>
            /// 黑名单[user]
            /// </summary>
            Blacklist = 6,
            /// <summary>
            /// 私信用户[user]
            /// </summary>
            Message = 7,
            /// <summary>
            /// 未读私信用户[user]
            /// </summary>
            NewMessage = 8,

            /// <summary>
            /// 企业私信用户[user]
            /// </summary>
            _EnterpriseMessage = 9,
            /// <summary>
            /// 未读企业私信用户[user]
            /// </summary>
            _EnterpriseNewMessage = 10,
            /// <summary>
            /// 匿名[question]
            /// </summary>
            Anonymous = 11,

            /// <summary>
            /// 赞成[any]
            /// </summary>
            Agree = 12,
            /// <summary>
            /// 反对[answer]
            /// </summary>
            Oppose =13,
            /// <summary>
            /// 感谢[answer]
            /// </summary>
            Thank = 14,
            /// <summary>
            /// 没有帮助[answer]
            /// </summary>
            NoHelp = 15,

            /// <summary>
            /// 签到
            /// </summary>
            _CheckIn = 16,

            /// <summary>
            /// 自我描述[topic]
            /// </summary>
            Depict = 17,

            /// <summary>
            /// 教程毕业[tutorial]
            /// </summary>
            Accepted = 18,
            /// <summary>
            /// 用户使用点头盾查看题解
            /// </summary>
            Solution = 19,
            /// <summary>
            /// 私信用户[user]
            /// </summary>
            __EnterpriseMessage = 20,
            /// <summary>
            /// 未读私信用户[user]
            /// </summary>
            __EnterpriseNewMessage = 21,

            /// <summary>
            /// 评论[any]
            /// </summary>
            _Comment = 22,
            /// <summary>
            /// 注册比赛[contest]/学习教程[tutorial]
            /// </summary>
            Register = 23,
        }
        /// <summary>
        /// 关注状态
        /// </summary>
        [fastCSharp.emit.dataMember(PrimaryKeyIndex = 3, DataType = typeof(int))]
        [fastCSharp.code.cSharp.webView.outputAjax]
        public type Type;
        /// <summary>
        /// 关注时间
        /// </summary>
        public DateTime FocusTime = fastCSharp.date.NowSecond;

        /// <summary>
        /// 关注类型数量
        /// </summary>
        public static readonly int FocusTypeSize = fastCSharp.Enum.GetMaxValue<type>(-1) + 1;
    }
}
